From 96aa2565944a95936aa47a318f90919574aa825c Mon Sep 17 00:00:00 2001 From: Cody Russell Date: Fri, 22 Aug 2008 00:30:06 +0000 Subject: [PATCH] Remove the checks to see if the window is modally blocked. This doesn't 2008-08-21 Cody Russell * gdk/win32/gdkevents-win32.c (doesnt_want_key): Remove the checks to see if the window is modally blocked. This doesn't get us anything, and it confuses the search window in GtkTreeView (and potentially other utility windows in other apps). (#520165) svn path=/trunk/; revision=21180 --- ChangeLog | 7 +++++++ gdk/win32/gdkevents-win32.c | 4 ---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index a6a247483e..2013a35e53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-08-21 Cody Russell + + * gdk/win32/gdkevents-win32.c (doesnt_want_key): Remove the checks + to see if the window is modally blocked. This doesn't get us anything, + and it confuses the search window in GtkTreeView (and potentially other + utility windows in other apps). (#520165) + 2008-08-21 Michael Natterer * gtk/gtktreeview.c (gtk_tree_view_realize): small formatting fix. diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c index f4ee91750b..5fe71685a1 100644 --- a/gdk/win32/gdkevents-win32.c +++ b/gdk/win32/gdkevents-win32.c @@ -1773,10 +1773,6 @@ doesnt_want_key (gint mask, { GdkWindow *modal_current = _gdk_modal_current (); GdkWindow *window = (GdkWindow *) gdk_win32_handle_table_lookup ((GdkNativeWindow)msg->hwnd); - gboolean modally_blocked = modal_current != NULL ? gdk_window_get_toplevel (window) != modal_current : FALSE; - - if (modally_blocked == TRUE) - return TRUE; return (((msg->message == WM_KEYUP || msg->message == WM_SYSKEYUP) && !(mask & GDK_KEY_RELEASE_MASK)) || -- 2.30.2